package com.example.monitoringsystem.mapper;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.monitoringsystem.bean.Doctor;
import com.example.monitoringsystem.bean.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.sql.Wrapper;
import java.util.List;


@Mapper
public interface DoctorMapper extends BaseMapper<Doctor> {
//    @Select("select * from  doctor ${ew.customSqlSegment}")
//    Doctor selectUsers(@Param(Constants.WRAPPER) Wrapper queryWrapper);
//    //查询用户的所有信息
//    @Select("select * from doctor ${ew.customSqlSegment}")
//     List<Doctor> showinformation(@Param(Constants.WRAPPER) Wrapper ew);
//    //更改用户信息
//    @Update("update doctor set ${ew.sqlSet} ${ew.customSqlSegment}")
//    void  updatedocotor(@Param(Constants.WRAPPER) UpdateWrapper<Object> ew);
}
